import http from '@/utils/http'

const api = {
    code: '/code/python',
    create: '/code/create'
}

const code = {
    getCode(formData) {
        return http.post(api.code, formData)
    },
    createCode(language) {
        return http.get(api.create + "/" +language)
    }
}

export default code
